import request from "@/utils/request";
import type { LoginDataType, UserInfoType } from "./type/userTypes";

/**
 * 请求获取登录
 * @returns
 */
export const reqLogin = (data: LoginDataType) => {
  return request.post<null, string>(`/admin/acl/index/login`, data);
};

/**
 * 请求获取用户数据
 * @returns
 */
export const reqUserInfo = () => {
  return request.get<null, UserInfoType>(`/admin/acl/index/info`);
};
